package exchange;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Parser {
	
	public String takeValue(String row, String key) {
		Pattern pattern = Pattern.compile(key + "=([^|]*)");
		Matcher matcher = pattern.matcher(row);
		matcher.find();
		return matcher.group(1);
	}
}
